package com.ctshk.rpc.train.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ctshk.rpc.train.dto.TrainProductCostPriceDTO;
import com.ctshk.rpc.train.entity.TrainProductCost;
import com.ctshk.rpc.train.mapper.TrainProductCostMapper;
import com.ctshk.rpc.train.service.ITrainProductCostService;
import org.apache.dubbo.config.annotation.DubboService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 火车产品成本表 服务实现类
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-11
 */
@DubboService
public class TrainProductCostServiceImpl extends ServiceImpl<TrainProductCostMapper, TrainProductCost> implements ITrainProductCostService {

    @Override
    public List<TrainProductCostPriceDTO> queryDetailByTrainProductIdAndLocalDate(Long trainProductId, LocalDate localDate) {
        return baseMapper.queryPrice(trainProductId, localDate);
    }
}
